/**
 * @author rperez
 *
 */
package com.itinsys.enma.dao;

import java.util.List;

import net.sf.ehcache.ObjectExistsException;

import com.itinsys.enma.domain.Career;
import com.itinsys.enma.domain.Subject;

public interface CareerDAO {
	
	public Career getById(int Career) throws ObjectExistsException;

	public List<Career> getAll();

	public boolean addCareer(Career career);

	public boolean updateCareer(Career career);

	public boolean deleteCareer(Career career);
	
	public Career getByDesc(String description);
	
	public List<Subject> getAllSubjectsByCareerYear(Integer Career, int year);

	List<Subject> getAllSubjectsByCareer(Integer idCareer);

	public void updatePlanningCareerNameOnMemory(String fromUpdate, String toUpdate);
	
}
